<template>
    <div class="item">
        <h2>标题</h2>
        <slot name="s1">默认内容</slot>
        <slot name="s2">默认内容2</slot>

    </div>
</template>

<script lang='ts' setup>
import { ref } from 'vue'
</script>
<style scoped>
.item {
    padding: 10px;
    width: 200px;
    height: 250px;
    background: rgb(62, 130, 202);
}

h2 {

    margin: 0;
    text-align: center;
    background: rgb(237, 103, 41);
}
</style>